
<?php
	
	include 'db_account.php';

	$weibo = 'rock';// $_POST['weibo'];
	$code = 'abc123';// $_POST['code'];//提取码
	$name = 'rock huang';//$_POST['name'];
	$phone = '13798358621';//$_POST['phone'];
	$province = 'guang dong';// $_POST['province'];
	$city = 'shen zhen';//$_POST['city'];
	$area = 'nan shan';//$_POST['area'];
	$street = 'bai shi zhou';// $_POST['street'];


	 

	// Create connection
	$conn = mysql_connect($servername, $username, $password);
	if ($conn->connect_error) {
	    die("db connection failed: " );
	} 
	mysql_select_db($dbname, $conn);

	$sql = "INSERT INTO xindongfang_user (`weibo`, `code`, `name`, `phone`,
        `province`, `city`, `area`, `street`) VALUES ('$weibo',
        '$code', '$name', '$phone',
        '$province','$city','$area','$street')";

	if (mysql_query($sql, $conn) === TRUE) {
	    echo "New record created successfully";
	} else {
	    echo "Error: " . $sql . "<br>" . $conn->error;
	}

	mysql_close($conn);
	
?>
<h5>提交成功！预计3日内完成审核制作并寄出，师傅等等我</h5>